//
//  BKAlertView.h
//  JKAlertDialog
//
//  Created by TOPTEAM on 16/7/5.
//  Copyright © 2016年 www.skyfox.org. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "CustomTextField.h"
typedef enum ButtonType
{
    Button_OK,
    Button_CANCEL,
    Button_OTHER
    
}ButtonType;

@class BKAlertViewItem;
typedef void(^BKAlertHandler)(BKAlertViewItem *item);



@interface BKAlertView : UIView
{
    UIView *_coverView;
    UIView *_alertView;
    UILabel *_labelTitle;
    UILabel *_labelmessage;
    
    UIScrollView *_buttonScrollView;
    UIScrollView *_contentScrollView;
    
    NSMutableArray *_items;
    NSString *_title;
    NSString *_message;
    
}

//_______________________________
@property (nonatomic,strong)UITextField * bk_textField;
@property (nonatomic,strong)UIButton    * btn_send;


//_______________________________



//按钮宽度,如果赋值,菜单按钮宽之和,超过alert宽,菜单会滚动
@property(assign,nonatomic)CGFloat buttonWidth;
//将要显示在alert上的自定义view
@property(strong,nonatomic)UIView *contentView;


//- (instancetype)initWithTitle:(NSString *)title message:(NSString *)message;
- (NSInteger)addButtonWithTitle:(NSString *)title;
- (void)addButton:(ButtonType)type withTitle:(NSString *)title handler:(BKAlertHandler)handler;
- (void)show;
- (void)dismiss;




//BK
/**
 *  @param title   标题
 
 */
- (instancetype)initWithTitle:(NSString *)title BtnMessage:(NSString *)message;
@end


@interface BKAlertViewItem : NSObject

@property (nonatomic, copy) NSString *title;
@property (nonatomic) ButtonType type;
@property (nonatomic) NSUInteger tag;
@property (nonatomic, copy) BKAlertHandler action;
@end
